package com.hbnu.system.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("audit")
public class Audit {

    /**
     * 审核主键id
     */
    @ApiModelProperty(value="审核主键id")
    @TableId(value = "auditID",type = IdType.ASSIGN_ID)
    private String auditID;

    /**
     * 副键id
     */
    @ApiModelProperty(value="副键id")
    @TableField(value="synthesisID")
    private String synthesisID;

    /**
     * 审核员职务
     */
    @ApiModelProperty(value="审核员职务")
    @TableField(value="auditerRole")
    private String auditerRole;

    /**
     * 审核员姓名
     */
    @ApiModelProperty(value="审核员姓名")
    @TableField(value="auditerName")
    private String auditerName;
    /**
     * 状态变化
     */
    @ApiModelProperty(value="状态变化")
    @TableField(value="statusChange")
    private String statusChange;

    /**
     * 审核时间
     */
    @ApiModelProperty(value="审核时间")
    @TableField(value="auditerTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditerTime;

    /**
     * 审核意见
     */
    @ApiModelProperty(value="审核意见")
    @TableField(value="auditOpinion")
    private String auditOpinion;
}
